
from ultralytics import YOLO
yolo = YOLO("yolov8n.pt", task="detect")
result = yolo(source="ultralytics/assets/zidane.jpg", save=True)